package com.spring.boot.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spring.boot.service.ProvinceService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

@TableName("data_province")//mybatis-plus zhu解
@Data
public class Province {
//    地区
    private String area;
//    新增境外
    private String overseasInputRelative;
//    新增死亡
    private String diedRelative;
//    新增本土
    private String nativeRelative;
//    累计无症状
    private String asymptomatic;
//    累计死亡
    private String died;
//    新增无症状
    private String asymptomaticRelative;
//    新增现有确诊
    private String curConfirmRelative;
//    累计确诊
    private String confirmed;
//    累计治愈
    private String crued;
//    数据更新时间
    private String relativeTime;
//    新增确诊
    private String confirmedRelative;
//    抢救无效
    private String icuDisable;
//    新增治愈
    private String curedRelative;
//    现有确诊
    private String curConfirm;
    @TableId("create_time")//saveOrUpdate的时候根据这个字段去更新
    private String createTime;

    public Province() {
    }

    public Province(String area, String overseasInputRelative, String diedRelative, String nativeRelative, String asymptomatic, String died, String asymptomaticRelative, String curConfirmRelative, String confirmed, String crued, String relativeTime, String confirmedRelative, String icuDisable, String curedRelative, String curConfirm, String createTime) {
        this.area = area;
        this.overseasInputRelative = overseasInputRelative;
        this.diedRelative = diedRelative;
        this.nativeRelative = nativeRelative;
        this.asymptomatic = asymptomatic;
        this.died = died;
        this.asymptomaticRelative = asymptomaticRelative;
        this.curConfirmRelative = curConfirmRelative;
        this.confirmed = confirmed;
        this.crued = crued;
        this.relativeTime = relativeTime;
        this.confirmedRelative = confirmedRelative;
        this.icuDisable = icuDisable;
        this.curedRelative = curedRelative;
        this.curConfirm = curConfirm;
        this.createTime = createTime;
    }
}
